<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
    <head>
        <title>CoolMeeting会议管理系统</title>
        <link rel="stylesheet" href="styles/common.css"/>
    </head>
    <body>
        <div class="page-body">
            <div class="page-content">
                <div class="content-nav">
                    会议预定 > 查看会议室
                </div>
                <table class="listtable">
                    <caption>所有会议室:</caption>
                    <tr class="listheader">
                        <th>门牌编号</th>
                        <th>会议室名称</th>
                        <th>容纳人数</th>
                        <th>当前状态</th>
                        <th>操作</th>
                    </tr>
                    <c:forEach items="${requestScope.meeting}" var="mee">
                        <tr>
                            <td>${mee.roomnum}</td>
                            <td>${mee.roomname}</td>
                            <td>${mee.capacity}</td>
                            <td>
                                <c:choose>
                                    <c:when test="${mee.status.equals('0')}">
                                        可用
                                    </c:when>
                                    <c:when test="${mee.status.equals('1')}">
                                        不可用
                                    </c:when>
                                </c:choose>
                            </td>

                            <td>
                                <a class="clickbutton" href="roomdetailsServlet?roomid=${mee.roomid}">查看详情</a>
                            </td>
                        </tr>
                    </c:forEach>

                </table>
            </div>
        </div>
    </body>
</html>